package day05;

public class HomeWorkup1 {
    public static void main(String[] args) {

        int sum=0;
        for (int i=2;i<=100;i+=2){

                sum+=i;

        }
        System.out.println("1到100所有偶数的和为："+sum);
    }
}
